package day02;
import java.util.Scanner;//1.导入一个扫描仪
public class ScannerDemo {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);//新建一个扫描仪叫scan
        System.out.println("请输入您的年龄：");
        int age=scan.nextInt();//3.扫描一个整数并赋值给age
        System.out.println("请输入商品的价格：");
        double price=scan.nextDouble();//4.扫描一个小数并赋值给price

        System.out.println(age);
        System.out.println(price);

    }
}
